package com.bite.friend.service.user;

import com.bite.api.domain.vo.UserQuestionResultVO;
import com.bite.common.core.domain.R;
import com.bite.friend.domain.user.dto.UserSubmitDTO;

public interface IUserQuestionService {

    //判题
    R<UserQuestionResultVO> submit(UserSubmitDTO submitDTO);

    //将答题丢入rabbit队列等待消费者取出
    boolean rabbitSubmit(UserSubmitDTO submitDTO);


    //查询代码运行结果
    UserQuestionResultVO exeResult(Long examId, Long questionId, String currentTime);
}
